package exchain

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/resp"
	"go-interview-forum/service/exchain"
)

func GetExChainList(c *gin.Context) {
	list, err := exchain.GetExChainList()
	if err != nil {
		resp.ServerErrorResp(c, -2, "get data err")
		return
	}

	resp.SuccessResp(c, list)
}
